import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { CustomerSimpleChildService } from './customer-simple-child.service';
import { CreateCustomerSimpleChildDto } from './dto/create-customer-simple-child.dto';
import { UpdateCustomerSimpleChildDto } from './dto/update-customer-simple-child.dto';

@Controller('customer-simple-child')
export class CustomerSimpleChildController {
  constructor(private readonly customerSimpleChildService: CustomerSimpleChildService) {}

  @Post()
  create(@Body() createCustomerSimpleChildDto: CreateCustomerSimpleChildDto) {
    return this.customerSimpleChildService.create(createCustomerSimpleChildDto);
  }

  @Get()
  findAll() {
    return this.customerSimpleChildService.findAll();
  }

  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.customerSimpleChildService.findOne(+id);
  }

  @Patch(':id')
  update(@Param('id') id: string, @Body() updateCustomerSimpleChildDto: UpdateCustomerSimpleChildDto) {
    return this.customerSimpleChildService.update(+id, updateCustomerSimpleChildDto);
  }

  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.customerSimpleChildService.remove(+id);
  }
}
